import api from '@/utils/api'

export default {
  state: {
    tableList: [],
    selectList: [],
    dialogType: "add",
    dialogShow: false,
    importTableShow: false,
    searchForm: {
      account: ""
    }
  }
}

// 查询db数据库列表
export function listDbTable(current, size, searchForm) {
  return api.post("/genTable/getDbList?current=" + current + "&size=" + size, searchForm);
}

// 导入表
export function importTable(data) {
  return api.post("/genTable/importTable", data);
}
